/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.mathematica;

/**
 *
 * @author Mr.Sam
 */
import javax.swing.*;
import java.awt.*;

public class JDesktopPaneWrapper extends JComponent {
    private static JDesktopPane desktop = null;
    
    public JDesktopPaneWrapper(JDesktopPane jdesktop) {
        setLayout(new BorderLayout());
        if (desktop == null)
            desktop = jdesktop;
            
        add(BorderLayout.CENTER, desktop);
    }
    
    public void setJDesktopPane() {
        add(BorderLayout.CENTER, desktop);
    }
}